#ifndef INFOFORM_H
#define INFOFORM_H

#include <QWidget>
#include<QMap>
#include"QTableView"
#include <QStandardItemModel>
#include<QAbstractItemView>
#include"QPushButton"
#include"Account/account.h"
#include<QVector>
namespace Ui {
class InfoForm;
}

class InfoForm : public QWidget
{
    Q_OBJECT

public:
    static InfoForm * getinstance(){
        if(myinfo==nullptr)
            myinfo=new InfoForm();
        return myinfo;


    }
    QVector<QPushButton*> chatbutton1;
     QVector<QPushButton*> chatbutton2;
    explicit InfoForm(QWidget *parent = nullptr);
    ~InfoForm();
private slots:
    void getinfo();
     void on_chatbutton_clicked1();
     void on_chatbutton_clicked2();
signals:
    void recovery(QString uid,QString gid,bool signal);

private:
    Ui::InfoForm *ui;
    static InfoForm *myinfo;
    QMap<QString,QString> infolist;
    QTableView *tableView;
    QStandardItemModel *tableModel;

};

#endif // INFOFORM_H
